package com.moonshine.parser.models;

import java.util.ArrayList;

public class ClassCollection extends ArrayList<ClassCollection.Entry> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 780245751396306080L;

	public ClassCollection() {

	}

	public Boolean add(int id, String packageName, String className,int checksum) {
		ClassCollection.Entry entry = new ClassCollection.Entry();
		entry.checksum = checksum;
		entry.id = id;
		ClassSignature classSig = new ClassSignature();
		classSig.packageName = packageName;
		classSig.name = className;
		entry.classSig = classSig;
		return add(entry);
	}

	public class Entry {
		public int checksum;
		public ClassSignature classSig;
		public int id;

		public String toString(){
			return "["+checksum+","+classSig.toString()+"]";
		}
	}
	
}
